From: Huangbin Zhan Date: Mon, 18 Jan 2021 14:00:23 +0000 (+0800) Subject: luci-app-ddns: fix wget-ssl path X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=4d5facb315e4373ac65a8a0992cdea2f88182ded;p=project%2Fluci.git luci-app-ddns: fix wget-ssl path Signed-off-by: Huangbin Zhan --- diff --git a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns index 0a60142e6f..36c6bdf269 100755 --- a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns +++ b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns @@ -187,7 +187,7 @@ local methods = { local function has_wgetssl() if cache['has_wgetssl'] then return cache['has_wgetssl'] end - local res = (sys.call( [[command -v wget-ssl >/dev/null 2>&1]] ) == 0) + local res = has_wget() and (sys.call( [[wget --version | grep -qF +https >/dev/null 2>&1]] ) == 0) cache['has_wgetssl'] = res return res end